package com.codemonkey.lq.test.sampledata.deprecated;

import java.util.HashMap;
import java.util.Map;

import cn.hutool.core.map.MapUtil;

/**
 * @author LQ
 * @deprecated 之后的项目不要再使用本类了
 */
@Deprecated
public final class MapDeprecatedProvider {

	/**
	 * @return  {Bo:
	 * 		    {a:
	 * 			{b:'aaaaaaaaaaaaa'}
	 *              }
	 *           }
	 */
	@SuppressWarnings("unchecked")
	public static final Map<String, Object> getCascadeMap() {
		Map bMap = new HashMap();
		bMap.put("b", "aaaaaaaaaaaaa");

		Map aMap = new HashMap();
		aMap.put("b", bMap);

		Map boMap = new HashMap();
		boMap.put("a", aMap);

		Map runtimeMap = new HashMap();
		runtimeMap.put("BO", boMap);

		return runtimeMap;
	}

	/**
	 * @return {
	 *    {'int'    : 1000}
	 *    {'str' : String}
	 *    {'null'   : null}
	 *    {'trueStr'   : 'true'}
	 * }
	 */
	public static final Map<String, Object> getClassKeySampleValue() {
		Map<String, Object> map = MapUtil.newHashMap();
		map.put("int", 1000);
		map.put("str", "String");
		map.put("null", null);
		map.put("trueStr", true);
		return map;

	}
}
